package com.design.callback.sync.test;

/**
 * 抽象调用者
 */
public abstract class ThreadHolder {

    public abstract void run();

    /**
     *
     * @param callback 回调对象
     */
    public final void run(Callback callback) {
        this.run();
        if (callback != null) {
            callback.call();
        }
    }
}
